import { AnyAction } from 'redux';
import * as TYPES from '../action-types';
export interface CounterState {
    number: number;
}
const initialState: CounterState = { number: 0 };
export default function (state: CounterState = initialState, action: AnyAction): CounterState {
  switch (action.type) {
  case TYPES.INCREMENT:
    return { number: state.number + 1 };
  default:
    return state;
  }
}
